/*
 * @Author: your name
 * @Date: 2021-11-09 20:50:38
 * @LastEditTime: 2021-11-11 14:06:24
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \li-yuwei\back-stage\src\router\homeRouter\index.js
 */
const homeRouter = [{
    path: "/home",
    name: "Home",
    component: () =>
        import ("@/views/home/index.vue"),
    meta: {
        author: ["管理员", "访客"],
    },
    children: [{
            path: "/home",
            redirect: "/workbench",
            meta: {
                author: ["管理员", "访客"],
            },
        },
        {
            path: "/workbench",
            name: "Workbench", //工作台
            component: () =>
                import ("@/views/home/workbench/index.vue"),
            meta: {
                author: ["管理员", "访客"],
            },
        },
        {
            path: "/articleAdmin",
            name: "ArticleAdmin", //文章管理
            component: () =>
                import ("@/views/home/articleAdmin/index.vue"),
            meta: {
                author: ["管理员", "访客"],
            },
            children: [{
                    path: "/articleAdmin/allAdmin",
                    name: "AllAdmin",
                    component: () =>
                        import ("@/views/home/articleAdmin/allAdmin/index.vue"),
                    meta: {
                        author: ["管理员", "访客"],
                    },
                },
                {
                    path: "/articleAdmin/classifyAdmin",
                    name: "ClassifyAdmin",
                    component: () =>
                        import ("@/views/home/articleAdmin/classifyAdmin/index.vue"),
                    meta: {
                        author: ["管理员", "访客"],
                    },
                },
                {
                    path: "/articleAdmin/tagAdmin",
                    name: "TagAdmin",
                    component: () =>
                        import ("@/views/home/articleAdmin/tagAdmin/index.vue"),
                    meta: {
                        author: ["管理员", "访客"],
                    },
                },
            ],
        },
        {
            path: "/pageAdmin",
            name: "PageAdmin", //页面管理
            component: () =>
                import ("@/views/home/pageAdmin/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/knowledgeQuiz",
            name: "KnowledgeQuiz", //知识小册
            component: () =>
                import ("@/views/home/knowledgeQuiz/index.vue"),
            meta: {
                author: ["管理员", "访客"],
            },
        },
        {
            path: "/poster",
            name: "Poster", //海报管理
            component: () =>
                import ("@/views/home/poster/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/commentAdmin",
            name: "CommentAdmin", //评论管理
            component: () =>
                import ("@/views/home/commentAdmin/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/emailAdmin",
            name: "EmailAdmin", //邮箱管理
            component: () =>
                import ("@/views/home/emailAdmin/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/fileAdmin",
            name: "FileAdmin", //文件管理
            component: () =>
                import ("@/views/home/fileAdmin/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/searchRecodes",
            name: "SearchRecodes", //搜索记录
            component: () =>
                import ("@/views/home/searchRecodes/index.vue"),
            meta: {
                author: ["管理员", "访客"],
            },
        },
        {
            path: "/visitStatistics",
            name: "VisitStatistics", //访问统计
            component: () =>
                import ("@/views/home/visitStatistics/index.vue"),
            meta: {
                author: ["管理员", "访客"],
            },
        },
        {
            path: "/usersAdmin",
            name: "UsersAdmin", //用户管理
            component: () =>
                import ("@/views/home/usersAdmin/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/systemSettings",
            name: "SystemSettings", //系统设置
            component: () =>
                import ("@/views/home/systemSettings/index.vue"),
            meta: {
                author: ["管理员"],
            },
        },
        {
            path: "/personalCenter",
            name: "PersonalCenter", //个人中心
            component: () =>
                import ("@/views/home/personalCenter/index.vue"),
            meta: {
                author: ["管理员", "访客"],
            },
        },
    ],
}, ];
export default homeRouter;